Mongo DB
MongoDB: The Gem of NoSQL
MongoDB shines as a NoSQL database, offering flexibility and scalability. Departing from traditional databases, it embraces document orientation with BSON, allowing diverse and nested data structures. MongoDB's dynamic schema, powerful query language, and CRUD operations provide a creative and efficient approach to data management. It's a gem for those who seek a flexible, document-friendly, and infinitely scalable database solution.
Exposed Ports
Port Type | Port Number | Description |
---|---|---|
Tcp | 27017 | MongoDB exposes port 27017 for TCP traffic. |
http | - | - |
Volume Mounts
MongoDB uses volume mounts to manage data storage and configuration. You can set these when running the container:
Volume | Description |
---|---|
/my/own/datadir | Path to MongoDB data directory. |
Environment Variables
Environment value: | Decription |
---|---|
- | - |
Installation
Description | Decription |
---|---|
Docker Image | mongo db👈(click me,for the dockerhub image) |
Application name | Eg: mongo1(you can put any name) |
Resource Allocation | 0-100%(10 % of your allocated resources (CPU, RAM) will be used for this application.) |
Protocol | |
Http: | |
Tcp: | 27017 |
Advanced | Install with Default |
Steps And Procedure
For Detailed steps and procedure please vist this page: Click here
Steps to connect with mongo db
If you want to connect MongoDB Compass to a MongoDB instance running on a different host or IP address, you can follow these steps:
-
Open MongoDB Compass: Launch MongoDB Compass on your computer.
-
Click "New Connection": In the MongoDB Compass interface, click on the "New Connection" button to start creating a new connection.
-
Configure Connection Details: In the connection configuration window, follow these steps:
- Hostname: Enter the IP address or hostname of the MongoDB server you want to connect to. In your case, this would be
103.37.96.201
. - Port: Use the default MongoDB port
27017
. - Authentication: If the MongoDB server requires authentication, enter the necessary credentials (username and password).
Enter Connection URL: In the connection configuration window, you'll see a single text box labeled "Connection String." Here, you will directly enter the connection URL in the following format:
codemongodb://<IP_ADDRESS>:27017
Replace
<IP_ADDRESS>
with the actual IP address of the MongoDB server. In your case, the URL would be:codemongodb://103.37.96.201:27017
- Hostname: Enter the IP address or hostname of the MongoDB server you want to connect to. In your case, this would be
-
Advanced Options (Optional): If you need to specify additional connection options, you can expand the "Advanced" section. Here, you can configure options like SSL, replica set name, and more.
-
Test Connection: After entering the connection details, you can click the "Test" button to check if the connection is successful. MongoDB Compass will attempt to connect to the server and validate the settings.
-
Save the Connection: If the connection test is successful, you can give your connection a name and optionally add it to your favorites. Then click the "Connect" button to establish the connection.
-
Explore and Manage Data: Once the connection is established, MongoDB Compass will display the databases and collections available on the connected server. You can explore and manage your data using the intuitive graphical interface.
Remember that for the connection to work, the MongoDB server at the specified IP address (103.37.96.201
in your case) must be reachable from your computer and configured to allow connections from the IP address you are using. Also, if the server requires authentication, make sure to provide the correct credentials during the connection setup.
Step-by-Step Guide to MONGO DB Deployment
- Docker Image Selection:
- Docker Image Name:
Mongo db
- Docker Image Name:
- Application Details:
- Application Name: Mongo1
- Resource Allocation: Set the desired resource allocation from 0-100%.
- Protocol Configuration:
- Protocol:
TCP
- Port:
27017
- Protocol:
- Installation Options:
- Choose between "Default" or "Advanced" installation.
- Advanced Installation (Optional):
-
If selecting "Advanced," you can customize the environment variables and working directory:
-
Environment Variables:
Environment variables are dynamic values used by a containerized application for configuration. They are defined as key-value pairs, like
API_KEY=xyz
, and provide flexibility to adjust an app's behavior without changing its code.- Environment Variables: Define environment variables with keys and values (e.g.,
key=value OR MONGO_INITDB_ROOT_USERNAME=root, MONGO_INITDB_ROOT_PASSWORD=123
).
- Environment Variables: Define environment variables with keys and values (e.g.,
-
Working Directory:
The working directory is the starting point inside a container where an app's files are located. It affects relative file paths and operations. For example, if set to
/usr/src/yourAPP
, an app will reference files from there, like/usr/src/yourAPP/data.txt
.- Working Directory: Set the working directory for the application (e.g.,
usr/src/yourAPP
). - Here use ( use the path after " :" )
- /my/own/datadir:/data/db
- Working Directory: Set the working directory for the application (e.g.,
-
- Access Configuration:
- Choose between "Public" or "Private" access to the deployed application.
- Installation:
- Click the "Install" button to initiate the deployment process.
By following these steps, you can effortlessly deploy an mongodb instance with your chosen configurations. This enables you to tailor the environment to match your application's requirements and specifications. Whether opting for the default installation or delving into advanced settings, our platform ensures a seamless deployment experience while providing you the flexibility to customize according to your needs.
Visual Snapshots
FAQ
For Detailed FAQ please vist this page: FAQ
Join us
Stay informed and engaged with our project's latest developments and support on Slack. Join us today to connect, collaborate, and keep the momentum going!
Category
Kubernetes, cloud computing, DevOps, cloud services, hosting platform, container orchestration, cloud infrastructure, cloud deployment, cloud management, cloud technology, cloud solutions, , database, mongo db